package org.blade.personal.mode.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.blade.personal.mode.BaseEntity;

/***
 * 权限
 * 
 * @author ZGF
 * 
 */

@Entity
@Table(name="sys_authority")
public class SystemAuthority extends BaseEntity<Long>{

	@Column(name = "name")
	private String name;
	
	@Column(name = "is_private")
	private int isPrivate;
	
	@Column(name = "weight_value")
	private int weightValue;
	
	@ManyToOne
	@JoinColumn( name = "url_id")
	private SystemUrl url;
	
	@Column( name = "parent_id")
	private Long parentId;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIsPrivate() {
		return isPrivate;
	}

	public void setIsPrivate(int isPrivate) {
		this.isPrivate = isPrivate;
	}

	public int getWeightValue() {
		return weightValue;
	}

	public void setWeightValue(int weightValue) {
		this.weightValue = weightValue;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public SystemUrl getUrl() {
		return url;
	}

	public void setUrl(SystemUrl url) {
		this.url = url;
	}
	
}
